
import { useLoaderData } from 'react-router-dom'

function useBtnIsAuth(str) {
    const loader = useLoaderData()
    return loader.includes(str)
}

export default useBtnIsAuth
